{% extends '::base.html.twig' %} 
{% block module_name %}Inventario :: Bodega {{bodega.nombre}} {% endblock %}
{% block title %}Inventario :: Bodega{% endblock %}
{% block customScripts %}
<script src="{{ asset('bundles/EndorBundle/js/jquery.dataTables.min.js') }}"></script>
{% endblock %}
{% block body %}

<h2>Inventario</h2>
<div class="widget_inside">
    <table class="regular">
        <thead>
            <tr>
                <th>Marca</th>
                <th>Modelo</th>
                <th>Cantidad</th>
                <th style="width: 100px;">Acciones</th>
            </tr>
        </thead>
        <tbody>
                    {% for articulo in articulos %}
                <tr>
                    <td>{{articulo["marca"]}}</td>
                    <td> {{articulo["modelo"]}}</td>
                    <td>{{articulo["Cantidad"]}}</td>
                    <td><a class="button small" href="{{urlMovimiento}}{{bodega.id}}/{{articulo["id_articulo"]}}">Movimientos</a></td>
                </tr>
                    {% endfor %}
            </tbody>
        </table>
    </div>
<script>
$(document).ready(function(){
    $('.regular').dataTable({
        "sPaginationType": "full_numbers",
        "bJQueryUI": true
    });
});
</script>
{% endblock %}